package com.ym.domain.model;

import com.gitee.sunchenbin.mybatis.actable.annotation.ColumnComment;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Table;
import java.time.LocalDateTime;


@Data
@Table
@TableComment("实名模板注册表")
@EqualsAndHashCode(callSuper = true)
public class DmRealNameTemplateRegister extends BaseModel {

    //"0-待审核", "1-审核中", "2-审核成功", "3-审核拒绝"
    public static final short STATUS_WAIT_CHECK = 0;
    public static final short STATUS_CHECKING = 1;
    public static final short STATUS_CHECK_SUCCESS = 2;
    public static final short STATUS_CHECK_FAIL = 3;

    @Column
    @ColumnComment("模板ID")
    private Long realNameTemplateId;

    @Column
    @ColumnComment("注册商ID")
    private Long registrarId;

    @Column(length = 100)
    @ColumnComment("注册商名称")
    private String registrarName;

    @Column(length = 100)
    @ColumnComment("外部模板编号")
    private String outTemplateId;

    @Column
    @ColumnComment("状态")
    private Short status;

    @Column(length = 2000)
    @ColumnComment("失败的原因")
    private String failReason;

    @Column
    @ColumnComment("审核日期")
    private LocalDateTime approveTime;

}
